import request from '@/utils/request'

export function measureList(id) {
  return request({
    url: '/api/admin/details/measureList/' + id,
    method: 'get'
  })
}


// 新增措施
export function addMeasure(obj) {
  return request({
    url: '/api/admin/details/addMeasure',
    method: 'post',
    data: obj
  })
}

// 展示五级列表
export function pageDetails(query) {
  return request({
    url: '/api/admin/details/page',
    method: 'get',
    params: query
  })
}

// 删除整改措施
export function delMeasure(id) {
  return request({
    url: `/api/admin/fireRectifyRectification/${id}`,
    method: 'DELETE'
  })
}

// 查询整改措施
export function getMeasure(id) {
  return request({
    url: `/api/admin/fireRectifyRectification/${id}`,
    method: 'GET'
  })
}

// 更新整改措施
export function updateMeasure(id, obj) {
  return request({
    url: `/api/admin/fireRectifyRectification/${id}`,
    method: 'PUT',
    data: obj
  })
}



